import { util } from "../etc/Util";
import NewRecodeTips_Generate from "../ui-generate/NewRecodeTips_generate";

export class NewRecodeTips extends NewRecodeTips_Generate{
    private timer = 0

    onStart(){
        this.canUpdate = true
    }

    onShow(){
        this.timer = 0
    }

    setInfo(distance:number){
        this.txt_distance.text = `${distance}米`
    }

    onUpdate(){
        this.timer += 0.03
        if(this.timer > 2){
            UIService.hideUI(this)
        }
    }
}